$(":radio").click(function(){
	$("#table").bootstrapTable('refresh');
});

function queryParams(p){
	var status = $('input:radio[name="status"]:checked').val();
	p.status = status;
	p.standDown = 0;
	return p;
}

/*
 * 格式化操作列
 */
function state(value, row, index) {
	var image_url = row.image_url;
	var image = image_url.substr(0, 25);
	if(image_url != null){
		image;
		return [
//			"<img src=" + "http://192.168.3.37:8088/adicms_image" + image + " style='width:150px;height:150px;' class='img-rounded'/>"
			"<img src=" + "http://47.104.67.69:8088/adicms_image" + image + " style='width:150px;height:150px;' class='img-rounded'/>"
//			"<img src=" + "http://127.0.0.1:8088/adicms_image" + image + " style='width:150px;height:150px;' class='img-rounded'/>"
		].join('');	
	}
}

function operating_status(value, row, index) {
	return [
		"<a class='detail' data-target='#modal-detail' href='javascript:void(0)'>查看溯源轨迹</a>&emsp;&emsp;<a class='detail' target='_blank' href='http://www.365gps.com'>实时位置显示</a>"
	].join('');	
}

